<script setup>
import { ref } from 'vue'
const file = ref({
  fileName: '文件名'
})
const openUser = () => {
}
</script>

<template>
  <div class="number-user">
    <div class="number-box">
      <div class="btn-box close"@click="openUser">
        上传文件
      </div>
      <div class="number-wrapper">
        <div class="title-box">
          <div class="title">{{ file.fileName }}</div>
          <div class="title-right">
            <img src="@/assets/upload/download.png" alt="">
            <span>下载</span>
          </div>
        </div>

        <div class="text-content">
          下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载下载
        </div>
      </div>
      <div class="number-wrapper" style="margin: 10px 0">
        <div class="textarea">
          <input type="textarea" placeholder="请输入你想生成的内容…">
        </div>
      </div>
      <div class="number-wrapper">
        <div class="title-box">
          <div class="title">选择参考知识库</div>
        </div>

        <div class="text-content">

        </div>
      </div>
      <div class="footer-btn-box">
        <div class="footer-btn footer-btn1">
          自动完善
        </div>
        <div class="footer-btn footer-btn2">
          自动填充
        </div>
      </div>

    </div>
  </div>

</template>

<style scoped lang="scss">
.dark {
  .number-user {
    .footer-btn1 {
      background: #24272E;
      color: #fff;
    }
    .footer-btn2 {
      background: linear-gradient( 270deg, #0F70DC 0%, #6FF99E 100%);
      color: #ffffff;
    }

    background: #1A1D22;
    border-radius: 6px;
    .text-content {
      color: rgba(255,255,255,0.72);
    }
    .title-box .title {
      color: #ffffff;
    }
    .title-box .title-right {
      color: #24F2AC;
    }
    .btn-box {
      &.open {
        color: #ffffff;
        background-image: url("~@/assets/numberUser/btn-bg.png");
      }
      &.close {
        color: #63E2B7;
        background-image: url("~@/assets/firend/group.png");
      }
    }
    .tips {
      color: #ffffff;
    }
    .number-box {
      background: #1A1D22;
    }
    .number-wrapper {
      background: #24272E
    }
    .textarea {
      input {
        border: none;
        outline: none;
      }
    }
  }
}
.number-user {
  height: calc(100% - 16px);
  padding: 16px;
  margin-top: 16px;
  .footer-btn-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
  }
  .footer-btn {
    width: 48%;
    height: 28px;
    border-radius: 4px;
    line-height: 28px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    font-style: normal;
    cursor: pointer;
  }

  .textarea {
    input {
      background: #24272E;
      color: #999;
      font-size: 13px;
      padding: 10px;
      border: none;
      outline: none;
    }
  }
  .btn-box {
    margin-top: 8px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    text-align: center;
    line-height: 36px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
  }
  .tips {
    padding-top: 40px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    line-height: 20px;
    text-align: center;
    margin-bottom: 20px;
  }
  .number-box {
    height: 214px;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    .number-wrapper {
      padding: 10px;
      border-radius: 10px;
    }
    .number-user-audio {
      padding: 12px 0;
    }
    .title-box {
      border-radius: 10px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      padding: 0 4px;
      .title {
        flex-grow: 1;
        padding-right: 10px;
        // 单行文本溢出显示省略号
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 14px;
        line-height: 24px;
        text-align: left;
      }
      .title-right {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        cursor: pointer;
        img {
          width: 11px;
          height: 10px;
          margin-right: 5px;
        }
        font-size: 12px;
      }
    }
    .text-content {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 14px;
      line-height: 20px;
      text-align: left;
      font-style: normal;
      text-transform: uppercase;
    }
  }
}
</style>
